﻿<%@ Page Language="C#" MasterPageFile="../main.master" Inherits="VioletDevelopmentLaboratory.Net.Web.Configuration.VWebConfigManagerPage" %>

<script runat="server">
	protected void HttpCookiesDetailsView_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
	{
		ShowAlert_DetailsView_ItemUpdated(e);
	}
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">

	<h2>HttpCookies</h2>

	<div>
		<asp:ObjectDataSource ID="HttpCookiesDetailsViewDataSource" runat="server" 
			SelectMethod="GetHttpCookies" 
			TypeName="VioletDevelopmentLaboratory.Net.Web.Configuration.HttpCookiesSectionManager" 
			UpdateMethod="Modify">
			<UpdateParameters>
				<asp:Parameter Name="domain" Type="String" />
				<asp:Parameter Name="httpOnlyCookies" Type="Boolean" />
				<asp:Parameter Name="requireSSL" Type="Boolean" />
			</UpdateParameters>
		</asp:ObjectDataSource>
		<fieldset>
			<asp:DetailsView ID="HttpCookiesDetailsView" runat="server" 
				AutoGenerateRows="False" CellPadding="5" 
				DataSourceID="HttpCookiesDetailsViewDataSource" DefaultMode="Edit" 
				onitemupdated="HttpCookiesDetailsView_ItemUpdated">
				<Fields>
					<asp:BoundField DataField="Domain" HeaderText="Domain" 
						SortExpression="Domain" />
					<asp:CheckBoxField DataField="HttpOnlyCookies" HeaderText="HttpOnlyCookies" 
						SortExpression="HttpOnlyCookies" />
					<asp:CheckBoxField DataField="RequireSSL" HeaderText="RequireSSL" 
						SortExpression="RequireSSL" />
					<asp:CommandField ButtonType="Button" ShowCancelButton="False" 
						ShowEditButton="True" />
				</Fields>
			</asp:DetailsView>
		</fieldset>
	</div>

</asp:Content>